home *** CD-ROM | disk | FTP | other *** search
/ How Many Bugs in a Box / How Many Bugs in a Box.cdr / bugs / act2 / 00259.ls < prev    next >
Encoding:
Text File  |  1995-03-28  |  724 b   |  29 lines

  1. on exitFrame
  2.   global toplimit, bottomlimit, rightlimit, leftlimit, mysound, grabcur
  3.   cursor([grabcur, grabcur + 1])
  4.   repeat while the mouseDown = 1
  5.     set myh to the mouseH
  6.     set myv to the mouseV
  7.     if myh < leftlimit then
  8.       set the locH of sprite 33 to leftlimit
  9.     else
  10.       if myh > rightlimit then
  11.         set the locH of sprite 33 to rightlimit
  12.       else
  13.         set the locH of sprite 33 to myh
  14.       end if
  15.     end if
  16.     if myv < toplimit then
  17.       set the locV of sprite 33 to toplimit
  18.     else
  19.       if myv > bottomlimit then
  20.         set the locV of sprite 33 to bottomlimit
  21.       else
  22.         set the locV of sprite 33 to myv
  23.       end if
  24.     end if
  25.     updateStage()
  26.   end repeat
  27.   moveme2()
  28. end
  29.